﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- jsp文件头和头部 -->
<%@ include file="../base/top.jsp"%>
</head>
<body class="no-skin">
	<!-- /section:basics/navbar.layout -->
	<div class="main-container" id="main-container">
		<!-- /section:basics/sidebar -->
		<div class="main-content">
			<div class="main-content-inner">
				<div class="page-content">
					<div class="hr hr-18 dotted hr-double"></div>
					<div class="row">
						<div class="col-xs-12">

							<p style="margin-top: 30px; margin-bottom: 20px; font-size: 24px;  text-align: center; font-family: 'Microsoft Yahei', arial, Tahoma, sans-serif; background-repeat: no-repeat;">

								${assignmentRelevantDataDetail.projectName}</p>

							<p style="font-size: 17px; text-align: center; font-family: 宋体; color: rgb(0, 0, 0); background-repeat: no-repeat;">
								小组成员：小王、小李、小明、小刚</p>

							<div class="col-xs-12" style="margin-top: 30px;">
								<div class="col-xs-4 col-xs-offset-1" style="text-align: center">
									<div class="form-group">
										<div>
											<img id = "assignment"
												 width="70px"></div>
										<div style="margin-top: 10px;">
											<a class="btn btn-link" href="${assignmentRelevantDataDetail.assignmentAddress}" download="${assignmentRelevantDataDetail.assignmentName}${assignmentRelevantDataDetail.assignmentAddress.substring(assignmentRelevantDataDetail.assignmentAddress.indexOf("."),assignmentRelevantDataDetail.assignmentAddress.length())}"
											   style="font-size: 17px;  font-family: 宋体; background-repeat: no-repeat;">
												${assignmentRelevantDataDetail.assignmentName}
											</a>
										</div>
										<p style="margin-top: 15px; font-size: 17px; font-family: 宋体; color: rgb(0, 0, 0);">
											上传时间：<fmt:formatDate value="${assignmentRelevantDataDetail.assignmentCreateTime}" pattern="yyyy/MM/dd HH:mm"/></p>
										<p style="font-size: 17px; font-family: 宋体; color: rgb(0, 0, 0);">
											评阅状态：${assignmentRelevantDataDetail.assignmentState==0?'未下载':assignmentRelevantDataDetail.assignmentState==1?'未批阅':'已批阅'}</p>
									</div>
								</div>
								<div class="col-xs-4 col-xs-offset-1" style="text-align: center">
									<div class="form-group">
										<div>
											<img id = "assignmentJudge"
												 width="70px"></div>
										<div style="margin-top: 10px;">
											<a class="btn btn-link" href="${assignmentRelevantDataDetail.assignmentJudgeAddress}" download="${assignmentRelevantDataDetail.assignmentJudgeName}${assignmentRelevantDataDetail.assignmentJudgeAddress.substring(assignmentRelevantDataDetail.assignmentJudgeAddress.indexOf("."),assignmentRelevantDataDetail.assignmentJudgeAddress.length())}"
											   style="font-size: 17px;  font-family: 宋体; background-repeat: no-repeat;">
												${assignmentRelevantDataDetail.assignmentJudgeName}
											</a>
										</div>
										<div class="col-xs-12" style="margin-top: 15px; text-align: center">
											<c:forEach items="${judgeDetail.labelInfos}" var="labelInfo" varStatus="status">
												<p class="btn btn-xs btn-success"
												   style="margin-top: 5px">${labelInfo.labelName}
												</p>
											</c:forEach>
										</div>

										<div class="col-xs-12" style="margin-top: 20px; text-align: center">
											<p style="font-size: 17px; font-family: 宋体; ">
												<c:forEach items="${judgeDetail.studentScores}" var="studentScore" varStatus="status">
											        ${studentScore.stuName}${studentScore.grade}
											    </c:forEach>
										</div>

										<div class="col-xs-12" style="margin-top: 10px; text-align: center;">
											<input style="width: 80%" type="text" id="form-field-1" placeholder="请输入评语" value="${judgeDetail.assignmentJudgement}"/>
										</div>
										<div class="col-xs-12" style="margin-top: 10px; text-align: center">
											<a class="btn btn-lg btn-primary" style="margin-top: 20px;" onclick="">提交</a>
										</div>
									</div>
								</div>
							</div>

						</div>
						<!-- /.col -->
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<!-- /.main-content -->
		<!-- 返回顶部 -->
		<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
			<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
		</a>

	</div>
	<!-- /.main-container -->
	<!-- basic scripts -->
	<!-- 页面底部js¨ -->
	<%@ include file="../base/foot.jsp"%>

	<script type="text/javascript">
		$(top.hangge());
        $(document).ready(function () {
            $("#assignment").attr("src",getImageIcon("${(assignmentRelevantDataDetail==null)?null:assignmentRelevantDataDetail.assignmentAddress.substring(assignmentRelevantDataDetail.assignmentAddress.indexOf("."),assignmentRelevantDataDetail.assignmentAddress.length())}"));
            $("#assignmentJudge").attr("src",getImageIcon("${(assignmentRelevantDataDetail==null)?null:assignmentRelevantDataDetail.assignmentJudgeAddress.substring(assignmentRelevantDataDetail.assignmentJudgeAddress.indexOf("."),assignmentRelevantDataDetail.assignmentJudgeAddress.length())}"));
        });
	</script>
</body>
</html>